import http from '../util/request.js'

export default {
    //获取会员列表
    add:(obj)=>{
        return http({
            url:'/api/trainRoute',
            method:'POST',
            data:obj,
            headers: {
                //定义将数据以json的形式传入后台(java)
                'Content-Type': 'application/json'
            }
        });
    },
    edit:(obj)=>{
        return http({
            url:'/api/trainRoute',
            method:'PUT',
            data:obj,
            headers: {
                //定义将数据以json的形式传入后台(java)
                'Content-Type': 'application/json'
            }
        });
    },
    del:(id)=>{
        return http({
            url:'/api/trainRoute/'+id,
            method:'DELETE'
        });
    },
    page:(obj)=>{
        return http({
            url:'/api/trainRoute/page',
            method:'GET',
            //表单用param
            params:obj
        });
    }
}












